<a href='https://github.com/angular/angular.js/edit/v1.5.x/docs/content/error/$location/ipthprfx.ngdoc?message=docs(error%2Fipthprfx)%3A%20describe%20your%20change...' class='improve-docs btn btn-primary'><i class="glyphicon glyphicon-edit">&nbsp;</i>Improve this Doc</a>


<h1>Error: $location:ipthprfx
  <div><span class='hint'>Invalid or Missing Path Prefix</span></div>
</h1>

<div>
    <pre class="minerr-errmsg" error-display="Invalid url "{0}", missing path prefix "{1}".">Invalid url "{0}", missing path prefix "{1}".</pre>
</div>

<h2>Description</h2>
<div class="description">
  <p>This error occurs when you configure the <a href="api/ng/service/$location"><code>$location</code></a> service in the html5 mode, specify a base url for your application via <code>&lt;base&gt;</code> element and try to update the location with a path that doesn&#39;t match the base prefix.</p>
<p>To resolve this issue, please check the base url specified via the <code>&lt;base&gt;</code> tag in the head of your main html document, as well as the url that you tried to set the location to.</p>

</div>


